package com.matrix.admin.open.test.controller;

import com.matrix.admin.open.test.service.IUtilsTestService;
import com.matrix.common.vo.basic.response.BaseResponse;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 开放接口控制层
 *
 * @author liuweizhong
 * @since 2024-02-11
 */
@Tag(name = "开放工具类测试接口", description = "开放工具类测试接口")
@RestController
@RequestMapping("/open/utils")
public class UtilsTestController {

    @Resource
    private IUtilsTestService utilsTestService;

    @GetMapping("/testNewId")
    @Operation(summary = "测试id生成", description = "测试id生成")
    public BaseResponse<String> testNewId() {
        return BaseResponse.success(utilsTestService.testNewId());
    }

    @GetMapping("/testSetting")
    @Operation(summary = "测试配置接口", description = "测试配置接口")
    public BaseResponse<String> testSetting() {
        return BaseResponse.success(utilsTestService.testSetting());
    }

    @GetMapping("/test")
    @Operation(summary = "测试", description = "测试")
    public BaseResponse<String> test() {
        return BaseResponse.success(utilsTestService.test());
    }

}
